package week9.Q4;

public class ElectricVehicle extends Vehicle implements IPower{
    public ElectricVehicle(String brand,String color){
        super(brand,color);
    }

    public void run(){
        System.out.println("一辆"+getBrand()+"品牌的"+getColor()+"电动车");
    }

    @Override
    public void power() {
        System.out.println("动力是充电");
    }
}
